package com.ruoyi.web.controller.system;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.SysPythonActionEntity;
import com.ruoyi.system.service.IMpSysPythonActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author <a href="https://fengwenyi.com?fs=mpcg">Erwin Feng</a>
 * @since 2024-02-02
 */
@RestController
@RequestMapping("/system/action")
public class SysPythonActionController  extends BaseController {
    @Autowired
    private IMpSysPythonActionService iMpSysPythonActionService;

    @GetMapping("/page")
    private TableDataInfo actionPage(){

        return null;
    }
    @Anonymous
    @GetMapping("/saveAndUpdate")
    private AjaxResult saveAndUpdate(SysPythonActionEntity sysPythonActionEntity){
        return success(iMpSysPythonActionService.saveAndUpdate(sysPythonActionEntity));
    }
}
